const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  chainWebpack: config => {
    config.plugin('html').tap(args => {
      args[0].template = 'public/index.ejs'
      return args
    })
  },
  devServer:{
    proxy:{
      '/api':{
       target:'http://127.0.0.1/',
       changOrigin:true,
       pathRewrite:{
        '^/api/': ''  
       }
      }
    },
  }
})
